package com.zndroid.gridview.preview.indicator.impl;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.zndroid.gridview.preview.indicator.IIndicator;

public class RoundLinesIndicator implements IIndicator {
    @Override
    public View bindView(LayoutInflater layoutInflater, ViewGroup root) {
        return new RoundLinesIndicator3rd(layoutInflater.getContext());
    }

    @Override
    public void onIndex(View indicatorView, int position, int total) {
        if (indicatorView instanceof RoundLinesIndicator3rd) {
            ((RoundLinesIndicator3rd) indicatorView).notifyChanged(total, position);
        }
    }

    @Override
    public int left() {
        return 0;
    }

    @Override
    public int top() {
        return 0;
    }

    @Override
    public int right() {
        return 0;
    }

    @Override
    public int bottom() {
        return 46;
    }
}
